package com.xxgc.eow.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.xxgc.eow.entity.Industrytype;
import com.xxgc.eow.result.Result;
import com.xxgc.eow.service.ILibraryPassVoService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author:yxh
 * @Date :2023/6/6 - 06 - 06 - 2:22
 */
@Tag(name = "题库总题数与个人通过数")
@RestController
@RequestMapping("/libraryPassVo")
public class LibraryPassVoController {

    @Resource
    private ILibraryPassVoService libraryPassVoService;

    /**
     * 查询所有接口
     * @return
     */
    @ApiOperationSupport(author = "yxh")
    @Operation(summary = "查询所有接口", description = "查询所有数据")
    @SaIgnore
    @GetMapping
    public Result findAll(Integer userId) {
        return Result.ok(libraryPassVoService.getAll(userId));
    }
}
